package dao;

import java.util.List;

import entity.tUserAndtDevice;

public interface tUserAndtDeviceDao {
	
	public void add(tUserAndtDevice tuserandtdevice);
	
	public List<tUserAndtDevice> searchByuserId(String userId);
	
public List queryForPage(final String hql,final int offset,final int length);
    
    /** *//**
     * 查询所有记录数
     * @param hql 查询的条件
     * @return 总记录数
     */
    public int getAllRowCount(String hql);

}
